import request from "@/utils/request";

// 查询高端定制列表
export function listCustomization(query) {
  return request({
    url: "/md/customization/list",
    method: "get",
    params: query,
  });
}

// 查询高端定制详细
export function getCustomization(highEndCustomizationId) {
  return request({
    url: "/md/customization/" + highEndCustomizationId,
    method: "get",
  });
}

// 新增高端定制
export function addCustomization(data) {
  return request({
    url: "/md/customization",
    method: "post",
    data: data,
  });
}

// 修改高端定制
export function updateCustomization(data) {
  return request({
    url: "/md/customization",
    method: "put",
    data: data,
  });
}

// 删除高端定制
export function delCustomization(highEndCustomizationId) {
  return request({
    url: "/md/customization/" + highEndCustomizationId,
    method: "delete",
  });
}
